.class final Lnbisdk/hv;
.super Ljava/lang/Thread;


# instance fields
.field private d:Lnbisdk/ov;

.field private kY:Lnbisdk/ps;

.field private kZ:Ljava/util/Vector;

.field private la:Ljava/util/Vector;

.field private volatile lb:Z


# direct methods
.method constructor <init>(Lnbisdk/ps;)V
    .locals 2

    const-string v0, "Dispatcher Thread"

    invoke-direct {p0, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V

    const-wide/high16 v0, 0x2000

    invoke-static {v0, v1}, Lnbisdk/pn;->k(J)Lnbisdk/ov;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/hv;->d:Lnbisdk/ov;

    new-instance v0, Ljava/util/Vector;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/Vector;-><init>(I)V

    iput-object v0, p0, Lnbisdk/hv;->kZ:Ljava/util/Vector;

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lnbisdk/hv;->la:Ljava/util/Vector;

    iput-object p1, p0, Lnbisdk/hv;->kY:Lnbisdk/ps;

    return-void
.end method


# virtual methods
.method final a(Lnbisdk/oq;)V
    .locals 1

    iget-object v0, p0, Lnbisdk/hv;->kZ:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    return-void
.end method

.method final a(Lnbisdk/pq;)V
    .locals 1

    iget-object v0, p0, Lnbisdk/hv;->la:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    return-void
.end method

.method final b(Lnbisdk/pq;)V
    .locals 1

    iget-object v0, p0, Lnbisdk/hv;->la:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->removeElement(Ljava/lang/Object;)Z

    return-void
.end method

.method public final declared-synchronized end()V
    .locals 2

    monitor-enter p0

    const/4 v0, 0x1

    :try_start_0
    iput-boolean v0, p0, Lnbisdk/hv;->lb:Z

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    if-eq v0, p0, :cond_0

    iget-object v0, p0, Lnbisdk/hv;->kY:Lnbisdk/ps;

    monitor-enter v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :try_start_1
    iget-object v1, p0, Lnbisdk/hv;->kY:Lnbisdk/ps;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    invoke-virtual {p0}, Lnbisdk/hv;->join()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1
    .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v1

    :try_start_3
    monitor-exit v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    throw v1
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :catchall_1
    move-exception v0

    monitor-exit p0

    throw v0

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public final run()V
    .locals 5

    const/4 v4, 0x0

    :cond_0
    :goto_0
    :try_start_0
    iget-boolean v0, p0, Lnbisdk/hv;->lb:Z
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1

    if-nez v0, :cond_1

    :try_start_1
    iget-object v0, p0, Lnbisdk/hv;->kY:Lnbisdk/ps;

    invoke-virtual {v0}, Lnbisdk/ps;->kc()Lnbisdk/eh;

    move-result-object v0

    iget v1, v0, Lnbisdk/eh;->gE:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v0, p0, Lnbisdk/hv;->kZ:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v1

    move v2, v4

    :goto_1
    if-ge v2, v1, :cond_0

    iget-object v0, p0, Lnbisdk/hv;->kZ:Ljava/util/Vector;

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/oq;

    invoke-interface {v0}, Lnbisdk/oq;->eE()V

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_1

    :pswitch_1
    check-cast v0, Lnbisdk/qu;

    iget v1, v0, Lnbisdk/qu;->xD:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_2

    iget-object v1, v0, Lnbisdk/qu;->oi:Lnbisdk/dz;

    iget-object v0, v0, Lnbisdk/qu;->xF:Lnbisdk/dy;

    invoke-virtual {v1, v0}, Lnbisdk/dz;->c(Lnbisdk/dy;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_2
    iget-object v1, p0, Lnbisdk/hv;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->d(Ljava/lang/Throwable;)V
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_0

    :catch_1
    move-exception v0

    iget-object v1, p0, Lnbisdk/hv;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->c(Ljava/lang/Throwable;)V

    :cond_1
    return-void

    :cond_2
    :try_start_3
    iget-object v1, v0, Lnbisdk/qu;->oi:Lnbisdk/dz;

    iget v0, v0, Lnbisdk/qu;->xE:F

    invoke-virtual {v1, v0}, Lnbisdk/dz;->a(F)V

    goto :goto_0

    :pswitch_2
    check-cast v0, Lnbisdk/fj;

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lnbisdk/db;->n(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_3
    check-cast v0, Lnbisdk/jw;

    iget-object v1, p0, Lnbisdk/hv;->la:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v2

    move v3, v4

    :goto_2
    if-ge v3, v2, :cond_0

    iget-object v1, p0, Lnbisdk/hv;->la:Ljava/util/Vector;

    invoke-virtual {v1, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lnbisdk/pq;

    invoke-interface {v1, v0}, Lnbisdk/pq;->a(Lnbisdk/jw;)Z
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_1

    add-int/lit8 v1, v3, 0x1

    move v3, v1

    goto :goto_2

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
